home *** CD-ROM | disk | FTP | other *** search
- Path: ucl.ac.uk!nobody
- From: hammond_g@drkclu.meng.ucl.ac.uk (G. Ruth Hammond)
- Newsgroups: comp.lang.c
- Subject: Re: Why is C faster than FORTRAN?
- Date: Wed, 20 Mar 1996 13:25:06 GMT
- Organization: UCL Dept Mech Eng
- Message-ID: <1996Mar20.132506.91237@ucl.ac.uk>
- NNTP-Posting-Host: crs4gw.crs4.it
- Originator: daemon@crs4gw.crs4.it
-
-
- In article <4i4poj$j7e@thorn.cc.usm.edu>, sakalauk@coam.usm.edu (Peter
- Sakalaukus) writes:
- |>I have two programs, FORTRAN and C. They both use the same algorithm to
- |>manipulate numeric data. The larger the data file though, the faster the
- |>C version is, (in relation to the FORTARN program). I am running on a UNIX
- |>platform.
-
- quite probably the C RTL has better i/o functions
-
- |>My question is: what is the reason that C is so much quicker? Is C normally
- |>faster than FORTRAN?
-
- C is much easier to optimise by hand, but FORTRAN compilers have had a lot
- more work done on them to make it good for numerical stuff.
-
- --
- ~GuyRuthHammond () {}
- // Machinery and Mayhem at UCL Dept Mech Eng
- // mailto:hammond_g@meng.ucl.ac.uk http://www.ucl.ac.uk/~zcemm23
- // Clear the DECs, it's time for action!
-
-
-